package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DisciplinaryRecordMapper;
import com.ruoyi.system.domain.DisciplinaryRecord;
import com.ruoyi.system.service.IDisciplinaryRecordService;
import com.ruoyi.common.core.text.Convert;

/**
 * 征信档案Service业务层处理
 * 
 * @author 503
 * @date 2021-05-04
 */
@Service
public class DisciplinaryRecordServiceImpl implements IDisciplinaryRecordService 
{
    @Autowired
    private DisciplinaryRecordMapper disciplinaryRecordMapper;

    /**
     * 查询征信档案
     * 
     * @param disciplinaryId 征信档案ID
     * @return 征信档案
     */
    @Override
    public DisciplinaryRecord selectDisciplinaryRecordById(Long disciplinaryId)
    {
        return disciplinaryRecordMapper.selectDisciplinaryRecordById(disciplinaryId);
    }

    /**
     * 查询征信档案列表
     * 
     * @param disciplinaryRecord 征信档案
     * @return 征信档案
     */
    @Override
    public List<DisciplinaryRecord> selectDisciplinaryRecordList(DisciplinaryRecord disciplinaryRecord)
    {
        return disciplinaryRecordMapper.selectDisciplinaryRecordList(disciplinaryRecord);
    }

    /**
     * 新增征信档案
     * 
     * @param disciplinaryRecord 征信档案
     * @return 结果
     */
    @Override
    public int insertDisciplinaryRecord(DisciplinaryRecord disciplinaryRecord)
    {
        return disciplinaryRecordMapper.insertDisciplinaryRecord(disciplinaryRecord);
    }

    /**
     * 修改征信档案
     * 
     * @param disciplinaryRecord 征信档案
     * @return 结果
     */
    @Override
    public int updateDisciplinaryRecord(DisciplinaryRecord disciplinaryRecord)
    {
        return disciplinaryRecordMapper.updateDisciplinaryRecord(disciplinaryRecord);
    }

    /**
     * 删除征信档案对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDisciplinaryRecordByIds(String ids)
    {
        return disciplinaryRecordMapper.deleteDisciplinaryRecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除征信档案信息
     * 
     * @param disciplinaryId 征信档案ID
     * @return 结果
     */
    @Override
    public int deleteDisciplinaryRecordById(Long disciplinaryId)
    {
        return disciplinaryRecordMapper.deleteDisciplinaryRecordById(disciplinaryId);
    }
}
